package com.huluobo.module_city.repo

import com.huluobo.appbase.network.BaseReqData
import com.huluobo.appbase.network.RetrofitServiceBuilder
import com.huluobo.module_city.api.CityApi
import com.huluobo.module_city.bean.CityDataReqData

/**
 * Created by lc on 2022/12/28.
 * 城市数据仓库
 */
class CityRepo {
    private var netWork = RetrofitServiceBuilder.createService(CityApi::class.java)

    suspend fun loadCityData(): BaseReqData<List<CityDataReqData>>? {
        netWork?.let {
            return it.loadCityData()
        }
        return null
    }
}